package com.linchong.xshop.dao;

import com.linchong.xshop.entity.ProductCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject:xshop
 * @BelongsPackage:com.linchong.xshop.dao
 * @Author:linchong
 * @CreateTime:2018-08-05 11:17
 * @Description:商品类别的dao层接口实现
 */
public interface ProductCategoryDao {

    /**
     * 通过店铺的shopId查询店铺商品类别
     * @param shopId
     * @return
     */
    List<ProductCategory> queryProductCategoryList(long shopId);

    /**
     * 批量增加商品的类别
     * @param productCategoryList
     * @return
     */
    int batchInsertProductCategory(List<ProductCategory> productCategoryList);

    int deleteProductCategory(@Param("productCategoryId") long productCategoryId,
                              @Param("shopId") long shopId);
}
